//
//  UserInfoModel.swift
//  JiaXiaoTong
//
//  Created by 沈增光 on 2018/2/2.
//  Copyright © 2018年 IT. All rights reserved.
//

import UIKit

class UserInfoModel: NSObject,NSCoding {
    func encode(with aCoder: NSCoder) {
//        aCoder.encode(apiClassList, forKey: "apiClassList")
//        aCoder.encode(teacher, forKey: "teacher")
//        aCoder.encode(token, forKey: "token")
//        aCoder.encode(userId, forKey: "userId")
          self.mj_encode(aCoder)
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init()
        self.mj_decode(aDecoder)
//        apiClassList = aDecoder.decodeObject(forKey: "apiClassList") as? NSArray
//        teacher = aDecoder.decodeObject(forKey: "JXTeacher") as? JXTeacher
//        token = aDecoder.decodeObject(forKey: "token") as? String
//        userId = aDecoder.decodeObject(forKey: "userId") as? String
       
    }
    
//    /**班级数组*/
//    @property (strong, nonatomic) NSArray *apiClassList;
//    /**学生个人信息*/
//    @property (strong, nonatomic) JXTeacher *teacher;
//
//    @property (copy, nonatomic) NSString *token;
//
//    @property (copy, nonatomic) NSString *userId;
    var apiClassList :NSArray?
    var teacher : JXTeacher?
    var token : String?
    var userId : String?
    class func mj_objectClassInArray()->NSDictionary{
        
        return ["apiClassList":"ClassCourse","userId":"id"]
        
    }
}
